﻿@model TracNghiem.Areas.Admin.Models.Bai_VietModels
<div class="container_12">       
    <div class="grid_12">            
        <div class="module">
                <h2 align="right"><span><a href="@Url.Action("Index", "bai_viet")">Quay lại</a></span></h2>                       
                <div class="module-body">
                @using (Html.BeginForm("AddBaiHoc", "bai_viet", FormMethod.Post, new { id = "bai_viet", enctype = "multipart/form-data" }))
                {                      
                    <div align="center"><h1>THÊM MỚI BÀI VIẾT DỊCH VỤ</h1>
                      
                    </div>
                    if (TempData["msg"] != null)
                    {                            
                        <span class="notification n-error">@TempData["msg"]</span>
                    }  
                    <p></p>
                    <table> 
                            <p>
                                <label style="padding-left: 10%;">Dịch vụ:</label> 
                                <div style="padding-left: 9%;"> 
                                  @*  @if (Model.service_id != null)
                                    {                               
                                        @Html.DropDownListFor(x => x.dichvu_id, Model.service_id, new { style = "margin-left:17px" })  
                                    }*@

                                    <select id="dichvu_id" name="dichvu_id" style="margin-left:17px">
                                @Html.Raw(ViewBag.theanh);
</select>

                                </div>                          
                            </p> 
                            
                            <p>
                                <label style="padding-left: 10%;">Tên bài học:</label>
                                <div style="padding-left: 10%;">                                 
                                  
                                    <input class="input-medium" type="text" name="name" value="" > 
                                   
                                </div>                                                
                            </p>  

                            <p>
                                
                                <div style="padding-left: 10%;">Ảnh đại diện: 
                                 <input name="anh" type="file" />
                                   
                                </div>                                                
                            </p>  
                                                    
                       
                            
                              <p>
                                <label style="padding-left: 10%;">Tóm tắt:</label>
                                <div style="padding-left: 10%;">                                 
                                  
                                  @* // <input class="input-medium" type="text" name="tomtat" value="" > *@
                                    <textarea class="input-medium" type="text" name="tomtat" value=""  cols="20" rows="2"></textarea>
                                </div>                                                
                            </p>  
                        
                    </table>
                    <div class="button" align="center">
                        <p style="width:26%; text-align:center">
                            <input class="submit-green" type="submit" value="Thêm"/> 
                            <input class="submit-gray" type="reset" value="Hủy" />
                            
                        </p>
                    </div>
                }
                </div> <!-- End .module-body -->
        </div>  <!-- End .module -->
        <div style="clear:both;"></div>
    </div> <!-- End .grid_12 --> 
    <div style="clear:both;"></div>
</div> <!-- End .container_12 -->
